package com.lemon.boot.service;

import com.lemon.boot.common.base.BaseService;
import com.lemon.boot.dto.TenantMenuDTO;
import com.lemon.boot.dto.TenantMenuResourceDTO;
import com.lemon.boot.po.TenantMenuPO;
import com.lemon.boot.vo.LeftMenuVO;
import com.lemon.boot.vo.TenantMenuResourceVO;
import com.lemon.boot.vo.TreeSelectVO;

import java.util.List;
import java.util.Map;

/**
 * 租户-菜单中间表 业务接口
 *
 * @author Lemon
 * @since 2024-02-29
 */
public interface ITenantMenuService extends BaseService<TenantMenuPO, TenantMenuDTO> {
    List<LeftMenuVO> getLeftMenu();

    void order(Map<String, Object> param);

    List<TenantMenuResourceVO> getByRoleIdTenantId(Long roleId, Long tenantId);

    List<TenantMenuResourceVO> getAllMenuResourceByCurrent();

    List<TreeSelectVO> getParentByTreeSelect();

    String addMenuResourceByTenantId(TenantMenuResourceDTO tenantMenuResourceDTO);

    List<TenantMenuResourceVO> getMenuResourceByTenantId(Long tenantId);
}